<!DOCTYPE html>
<html>

<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <title>基于遗传算法自动排课系统</title>
  <script type="text/javascript" src="./javascript/jquery.min.js"></script>
  <link rel="stylesheet" href="layui/css/layui.css" media="all">
  <script type="text/javascript" src="./layui/layui.js"></script>
  <script>
    /**
     * 页面初始化
     * */
    $(document).ready(function () {
      var rname=localStorage.getItem("role");
      if("普通用户"==rname){
        $("#caidan").remove();
        $("div.layui-body").css("left",0);
      }
      $("#role").text(localStorage.getItem("role") + ": " + localStorage.getItem("username"));
      $("#loginout").click(function () {
        localStorage.clear;
        window.location = "./login.html";
      })

      $("#classroom").click(function () {
        $("#main").attr("src", "classroom.html");
      });
      $("#user").click(function () {
        $("#main").attr("src", "user.html");
      });
      $("#class").click(function () {
        $("#main").attr("src", "class.html");
      });
      $("#teacher").click(function () {
        $("#main").attr("src", "teacher.html");
      });
      $("#course").click(function () {
        $("#main").attr("src", "course.html");
      });
      $("#courseTeacher").click(function () {
        $("#main").attr("src", "courseTeacher.html");
      });

      $("#addLimimt").click(function () {
        $("#main").attr("src", "addLimimt.html");
      });
      $("#arrCourse").click(function () {
        $("#main").attr("src", "arrCourse.html");
      });
      $("#updateCourse").click(function () {
        $("#main").attr("src", "updateCourse.html");
      });

      $("#findArr").click(function () {
        $("#main").attr("src", "findArr.html");
      });

      $("#findCourseTable").click(function () {
        $("#main").attr("src", "courseTable.html");
      });


      $("#one").click(function () {
        $("#main").attr("src", "findCourseTable.html");
      });

    });

    /**
     *
     * */


  </script>

</head>

<body class="layui-layout-body">
  <div class="layui-layout layui-layout-admin">
    <div class="layui-header">
      <div class="layui-logo">基于遗传算法自动排课系统</div>
      <!-- 头部区域（可配合layui已有的水平导航） -->
      <!-- 头部区域（可配合layui已有的水平导航） -->
      <ul class="layui-nav layui-layout-left">
        <li class="layui-nav-item "><a id="arrCourse">查看分课</a></li>
        <li class="layui-nav-item "><a id="findCourseTable">查看课表</a></li>
        <li class="layui-nav-item "><a id="updateCourse">查看空教室</a></li>

      </ul>
      <ul class="layui-nav layui-layout-right">
        <li class="layui-nav-item">
          <a id="role"></a>
        </li>
        <li class="layui-nav-item">
          <a id="loginout">退出</a>
        </li>
      </ul>


    </div>

    <div id="caidan" class="layui-side layui-bg-black">
      <div class="layui-side-scroll">
        <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
        <ul class="layui-nav layui-nav-tree" lay-filter="test">
          <li class="layui-nav-item">
            <a id="class" href="javascript:;">班级设置</a>
          </li>
          <li class="layui-nav-item">
            <a class="" id="classroom" href="javascript:;">教室设置</a>
          </li>
          <li class="layui-nav-item">
            <a id="course" href="javascript:;">课程设置</a>
          </li>
          <li class="layui-nav-item">
            <a href="javascript:;" id="teacher">教师设置</a>
          </li>
          <li class="layui-nav-item">
            <a  id="one"  >排课管理</a>
          </li>
          <!-- <li class="layui-nav-item">
            <a href="javascript:;" id="updateCourse">临时调课</a>
          </li> -->
          <li class="layui-nav-item">
            <a class="" id="user" href="javascript:;">用户管理</a>
          </li>

        </ul>
      </div>
    </div>

    <div class="layui-body">
      <!-- 内容主体区域 -->
      <iframe id="main" src="welcome.html" name="main" width="100%" height="100%" frameborder="0"></iframe>
    </div>

    <div class="layui-footer">
      <!-- 底部固定区域 -->

    </div>
  </div>
  <script>

    var table;
    layui.use(['table'], function () {
      //table = layui.table //表格



    });








  </script>
  <script type="text/javascript" src="./javascript/jquery.min.js"></script>
  <script type="text/javascript" src="./layui/layui.js"></script>
  <script type="text/javascript" src="./javascript/index.js"></script>
</body>

</html>
